package com.slaoren.mvvmexamp.ui

import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.widget.Button
import com.slaoren.mvvmexamp.R

class MainActivity: Activity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.act_main)
        findViewById<Button>(R.id.to3).setOnClickListener {
            startActivity(Intent(this, MvvmDemo3Activity::class.java))
        }
        findViewById<Button>(R.id.to2).setOnClickListener {
            startActivity(Intent(this, MvvmDemo2Activity::class.java))
        }
        findViewById<Button>(R.id.to1).setOnClickListener {
            startActivity(Intent(this, MvvmDemo1Activity::class.java))
        }
    }
}